package main

import (
	"info-hub/appconfig"
	"info-hub/cache"
	"info-hub/models"
	"info-hub/router"
)

func main() {

	appconfig.Init() //加载配置

	models.Init() //连接数据库
	cache.Init()  //连接redis

	r := router.Init()
	r.Run(":8000")
}
